/**
 * This is a generated class and is not intended for modification.  To customize behavior
 * of this service wrapper you may modify the generated sub-class of this class - DeliveryOrderMaster.as.
 */
package com.service
{
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.services.wrapper.RemoteObjectServiceWrapper;
import com.adobe.serializers.utility.TypeUtility;
import com.model.valueObjects.VoDOHeaderList;
import com.model.valueObjects.VoDeliveryOrder;
import com.model.valueObjects.VoTrasactionMaster;
import mx.rpc.AbstractOperation;
import mx.rpc.AsyncToken;
import mx.rpc.remoting.Operation;
import mx.rpc.remoting.RemoteObject;

import mx.collections.ItemResponder;
import com.adobe.fiber.valueobjects.AvailablePropertyIterator;

[ExcludeClass]
internal class _Super_DeliveryOrderMaster extends com.adobe.fiber.services.wrapper.RemoteObjectServiceWrapper
{

    // Constructor
    public function _Super_DeliveryOrderMaster()
    {
        // initialize service control
        _serviceControl = new mx.rpc.remoting.RemoteObject();

        // initialize RemoteClass alias for all entities returned by functions of this service
        com.model.valueObjects.VoDeliveryOrder._initRemoteClassAlias();
        com.model.valueObjects.VoTrasactionMaster._initRemoteClassAlias();
        com.model.valueObjects.VoDOHeaderList._initRemoteClassAlias();

        var operations:Object = new Object();
        var operation:mx.rpc.remoting.Operation;

        operation = new mx.rpc.remoting.Operation(null, "addNewDeliveryOrder");
         operation.resultType = Object;
        operations["addNewDeliveryOrder"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "addNewTransactionOut");
         operation.resultType = Object;
        operations["addNewTransactionOut"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "deleteTransactionOut");
         operation.resultType = Object;
        operations["deleteTransactionOut"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "updateStockAfterDo");
         operation.resultType = Object;
        operations["updateStockAfterDo"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "editDeliveryOrder");
         operation.resultType = Object;
        operations["editDeliveryOrder"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "deleteDeliveryOrder");
         operation.resultType = Object;
        operations["deleteDeliveryOrder"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "getAllDeliveryOrder");
         operation.resultElementType = com.model.valueObjects.VoDeliveryOrder;
        operations["getAllDeliveryOrder"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "getDeliveryOrderByCode");
         operation.resultType = Object;
        operations["getDeliveryOrderByCode"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "getAllTransactions");
         operation.resultElementType = com.model.valueObjects.VoTrasactionMaster;
        operations["getAllTransactions"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "generateDoCode");
         operation.resultType = Object;
        operations["generateDoCode"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "checkSCStatus");
         operation.resultType = Object;
        operations["checkSCStatus"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "checkProductStatus");
         operation.resultType = Object;
        operations["checkProductStatus"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "updateStcokBeforeEditDo");
         operation.resultType = Object;
        operations["updateStcokBeforeEditDo"] = operation;
        operation = new mx.rpc.remoting.Operation(null, "getDoItemsForInvoice");
         operation.resultElementType = com.model.valueObjects.VoDOHeaderList;
        operations["getDoItemsForInvoice"] = operation;

        _serviceControl.operations = operations;
        _serviceControl.convertResultHandler = com.adobe.serializers.utility.TypeUtility.convertResultHandler;
        _serviceControl.source = "DeliveryOrderMaster";
        _serviceControl.endpoint = "gateway.php";
        destination = "DeliveryOrderMaster";



         model_internal::initialize();
    }

    /**
      * This method is a generated wrapper used to call the 'addNewDeliveryOrder' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function addNewDeliveryOrder(VObject:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("addNewDeliveryOrder");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(VObject) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'addNewTransactionOut' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function addNewTransactionOut(VObjectTR:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("addNewTransactionOut");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(VObjectTR) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'deleteTransactionOut' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function deleteTransactionOut(gr_do_detserialnumber_fk:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("deleteTransactionOut");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(gr_do_detserialnumber_fk) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'updateStockAfterDo' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function updateStockAfterDo(sc_detserialnumber:Object, po_detserialnumberArr:Object, do_detserialnumber:Object, pro_serialnumber_fk:Object, delivery_order_qty:Object, do_date:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("updateStockAfterDo");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(sc_detserialnumber,po_detserialnumberArr,do_detserialnumber,pro_serialnumber_fk,delivery_order_qty,do_date) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'editDeliveryOrder' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function editDeliveryOrder(VObject:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("editDeliveryOrder");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(VObject) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'deleteDeliveryOrder' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function deleteDeliveryOrder(VObject:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("deleteDeliveryOrder");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(VObject) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'getAllDeliveryOrder' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function getAllDeliveryOrder() : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getAllDeliveryOrder");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'getDeliveryOrderByCode' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function getDeliveryOrderByCode(serialnumber:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getDeliveryOrderByCode");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(serialnumber) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'getAllTransactions' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function getAllTransactions() : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getAllTransactions");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'generateDoCode' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function generateDoCode() : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("generateDoCode");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'checkSCStatus' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function checkSCStatus(sc_serialnumber:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("checkSCStatus");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(sc_serialnumber) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'checkProductStatus' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function checkProductStatus(sc_detserialnumber_fk:Object, pro_serialnumber_fk:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("checkProductStatus");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(sc_detserialnumber_fk,pro_serialnumber_fk) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'updateStcokBeforeEditDo' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function updateStcokBeforeEditDo(do_detserialnumber:Object, pro_serialnumber_fk:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("updateStcokBeforeEditDo");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(do_detserialnumber,pro_serialnumber_fk) ;

        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'getDoItemsForInvoice' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function getDoItemsForInvoice(customerFk:Object) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getDoItemsForInvoice");
        var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(customerFk) ;

        return _internal_token;
    }
     
}

}
